import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.JButton;
import javax.swing.JFrame;


public class helpFrame extends JFrame{

	private backgroundPanel panel;
	
	public helpFrame(){
		layoutGUI();
	}
	
	public void layoutGUI(){
		this.setTitle("Help");
		this.setSize(600,480);
		this.setDefaultCloseOperation(HIDE_ON_CLOSE);
		panel = new backgroundPanel("background.jpg",0,0,600,480);
		this.add(panel);
		
		int w = getWidth();
		int h = getHeight();
		Toolkit tk = Toolkit.getDefaultToolkit();
		Dimension screenSize = tk.getScreenSize();
		int screenWidth = screenSize.width;
		int screenHeight = screenSize.height;
		int x = (screenWidth - w)/2;
		int y = (screenHeight - h)/2;
		setLocation(x,y);
		
	}
	
	public static void main(String[] args){
		helpFrame temp = new helpFrame();
		temp.setVisible(true);
	}
}
